<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: ADC multi-channels sample example</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="PageDoc"><div class="header">
  <div class="headertitle">
<div class="title">ADC multi-channels sample example </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><pre class="fragment">  ****************** (C) COPYRIGHT 2023 Westberry Technology *******************
  * @file    ADC/ADC_MultiChannels/readme.txt 
  * @author  Westberry Application Team
  * @version V0.0.3
  * @date    12-April-2023
  * @brief   Description of the ADC ADC_MultiChannels example.
  ******************************************************************************
  * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, WESTBERRY SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
  * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM
  * THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  ******************************************************************************</pre><dl class="section user"><dt>Example Description </dt><dd></dd></dl>
<p>This example describes how to sample multi-channels continuously.</p>
<p>In this example, Main clock is configured at 24MHz.</p>
<p>The UART1 is configured as follow:</p><ul>
<li>BaudRate: 115200</li>
<li>Word Length: 8</li>
</ul>
<p>ADC is configured to sample 5 chnnels(ADC_Channel_0 ~ ADC_Channle_4, <br />
corresponding to PC6, PC3, PC4, PD2, PD3 respectively), each channel <br />
will be converted 10 times continuously, and the conversion value will be printed in uart1.</p>
<dl class="section user"><dt>Directory contents </dt><dd></dd></dl>
<ul>
<li>ADC/ADC_MultiChannels/ADC_MultiChannels.uvprojx MDK5 project file</li>
<li>ADC/ADC_MultiChannels/ADC_MultiChannels.uvoptx MDK5 project options file</li>
<li>ADC/ADC_MultiChannels/JLinkSettings.ini Jlink settings file</li>
<li>ADC/ADC_MultiChannels/main.c Main program</li>
</ul>
<dl class="section user"><dt>Hardware and Software environment </dt><dd></dd></dl>
<ul>
<li>Hardware environment<ul>
<li>The chip pins are connected as follows：<ul>
<li>UART1 (PD5, PD6) is connected to PC serial port.</li>
</ul>
</li>
</ul>
</li>
</ul>
<dl class="section user"><dt>How to use it ? </dt><dd></dd></dl>
<p>In order to make the program work, you must do the following :</p><ul>
<li>Open ADC_MultiChannels.uvprojx from this example folder by Keil MDK5</li>
<li>Rebuild all files and load your image into target memory</li>
<li><p class="startli">Run the example</p>
<h3><center>&copy; COPYRIGHT 2023 Westberry Technology</center></h3>
</li>
</ul>
</div></div><!-- PageDoc -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
